package  
{
	import org.flixel.*;
	/**
	 * ...
	 * @author le-ray_y
	 */
	public class Poison extends FlxSprite
	{
		// Enemy Graphics
		[Embed(source = '../../Assets/anim_poison.png')]
		private static var _poisonGraph:Class;
		
		public function Poison(posX:Number, posY:Number) 
		{
			this.x = posX;
			this.y = posY;
			
			// Graphic
			this.loadGraphic(_poisonGraph, true, false, 2448/18, 426);
			
			// Animations & Play
			this.addAnimation("reticle", [0], 5, true);
			this.addAnimation("poison", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], 10, false);
		}
		
		override public function update():void
		{
			super.update();
			
			if (this._curFrame == 15 && this._curAnim.name == "poison")
			{
				this.x = -500;
			}
		}
		
	}

}